import mediarequest from '@/utils/media-request'

export function getCps(data) {
  return mediarequest({
    url: '/console/cps',
    method: 'get',
    params: data
  })
}

export function createCp(data) {
  return mediarequest({
    url: '/console/cp',
    method: 'post',
    data
  })
}

export function updateCp(data) {
  return mediarequest({
    url: '/console/cp',
    method: 'patch',
    data
  })
}

export function deleteCp(data) {
  return mediarequest({
    url: '/console/cp',
    method: 'delete',
    data
  })
}

export function getCpTask(data) {
  return mediarequest({
    url: '/console/cp/tasks',
    method: 'get',
    params: data
  })
}
